|
-
Aug 10th, 2005, 06:35 PM
#1
Thread Starter
Fanatic Member
[Winsock] send & recv
Is it possible to send a text message with the API send? and receive the sent text message with recv on the server/client?
Like:
VB Code:
send lSocket, "howdy", Len("howdy"), flags ' probably wrong but thats why Im here :)
Possible?
Any examples you recommend seeing?
(I've checked vbip/winsockvb/allapi but none really have good examples of it)
-
Aug 10th, 2005, 06:57 PM
#2
-
Aug 10th, 2005, 07:10 PM
#3
Thread Starter
Fanatic Member
Re: [Winsock] send & recv
I can't ues the Winsock Control because my project is DLL. It errors "Out of Memory" when I use control. Thus why I want send/recv API's to send Text messages.
-
Aug 10th, 2005, 10:09 PM
#4
Lively Member
Re: [Winsock] send & recv
If you are familiar with Sockets (such as the Winsock OCX), search google for "VB6 CSocket" - csocket is a GREAT all-API class + module that you can use as a socket, it works FAR better than winsock, doesn't eat memory like crazy. I have a control to "encapsulate" it so it's more like winsock - just email [email protected]
-
Aug 10th, 2005, 11:28 PM
#5
Thread Starter
Fanatic Member
Re: [Winsock] send & recv
I've tried using CSocket before but I couldn't get it to send and receive data properly. I've also tried using Wokawidget's "vbWinsck" in his Component Suite but it errors "Failed to initialize blah blah". I was told it errors that because Winsock needs to create a window and it can't in a DLL. So I was then instructed to use the API's send and recv.
I emailed you, MalcolmCarmen.
-
Aug 11th, 2005, 12:57 AM
#6
Fanatic Member
Re: [Winsock] send & recv
If you are still having problems look at this project - http://vbforums.com/attachment.php?attachmentid=37051
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|