|
-
March 24th, 2009, 01:31 PM
#1
Connect window xp to linux(udp socket programming)
Hi.
I'm new to vb6.
I want to transmit data between linux(C laguage) and window xp(vb6) with UDP socket.
I already used "winsock" in vb6, but data wasn't transmitted with linux server.
Do I need to make structure(sockaddr_in) in vb6 so that linux server can read it?
Or can I use this structure type without any declare in vb6?
Here's my VB6 code,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Code:
''''send data'''''''''''''''''''''''''''
Private Sub cmdSend_Click()
wsClient.SendData txtSend.Text
DisplayText "<Client> " & txtSend.Text
txtSend.Text = vbNullString
End Sub
.................
''''receive data'''''''''''''''''''''
Private Sub wsClient_DataArrival(ByVal bytesTotal As Long)
Dim strData As String
wsClient.GetData strData, vbString
DisplayText "<Server> " & strData
End Sub
........
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
In order to receive/send data from/to this client(window, vb6),
how does Linux sever(C program) can do?
or
Does window client need to be change? How?
Please, it's urgent problem related with my research.
thanks.
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
|