hello! more one OWNET :D
ownet.vb (it's an User Control with an Microsoft Winsock control inside)
it need winsock control!
maybe an api for direct winsock2.dll could help
some function can't have same name like PHP or PYTHON or PERL
Constants are same as ownet.php, here i used an LastError() to get error
when reading directory or another device because VB functions are STRING
and i can't return NULL
FUNCTIONS:
LastError() as OWNET_ERRORS (return last error when reading or writing)
Dir(Path as String) as String (return directory with "," separator,
lasterror() should be used)
Presence(Path as String) as Boolean (check presence, lasterror()
shouldn't be used)
Read(Path as String) as String (read an path, lasterror() should be used)
ReadAny(Path as String) as String (read with Read function, if fail read
with Dir function, lasterror() should be used)
SetHost(Host as String) (set ow server host, lasterror() shouldn't
be used)
Public Variable RemoteHost is the same thing!
SetPort(Port as Integer) (set ow server port, lasterror()
shouldn't be used)
Public Variable RemotePort is the same thing!
GetHost() as String (return ow server host)
GetPort() as Integer (return ow server port)
SetValue(Path as String,Value as String) as Boolean (set an value and
return true or false on error or success (no lasterror() should be used
after this function call) )
This user control worked for me, maybe a vb.net or winsock api could
help in a new version...
if you wan't use winsock api, i put some "inteface" functions for
abstraction, be sure that everythink works when trying to change to a
new winsock api:
ws_makeconnection
ws_closeconnection
ws_send
ws_read
ws_status
sck* constants:
sckConnected
sckBadState
sckClosed
sckClosing
sckConnectAborted
sckError
Bye Guys
Roberto Spadim
Location:
http://www.spadim.com.br/ownet.vb.zip
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers