Can Winsock DLL Do Other Protocol Request ...
guys,
i find that the winsock OCX really is limited in its capability... can anyone suggest me a better one for network programming? because the protocol type is limited to a few only....
I hope to do RTSP / RTP request ... is there any thing that i can used to do that ???
can Winsock Dll do other protocol request or its the total same with the winsock OCX?
Does anyone has a sample using winsock DLL (as client)...??
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
A Protocol Request,
Hi,
I'm not sure how to do this, I think it's WinSock related and also requires Inet.
Noticed how some programs can recieve data through a request, like p2p for example. You can for instance go in your browser: download://blahblah.com/somexe.exe
I am making a program where people can download some software of their choice, it is unfortunately, a dynamic website instead of static. Therefore I want some way of telling Inet1 in the form, what file to download and save to from my WebBrowser1.
If I can use a protocol like dl:// to download to C:Downloaded and then execute the file that would be great.
better yet would be if i can only use this feature for a certain website, don't want a backdoor like limewire/warez/ares/kazaa lol.
ty
Wrong Protocol Or Connection State For The Requested Transaction Or Request....
I wrote a small application. It has 2 forms, one which listens on port 5555 and one that sends to it. Form1 listens to it and expects to recieve a byte array and insert it into a udt and print out the values of the variables in the udt on a label. In Form2 the data values are inserted into a byte array which is then sent to port 5555.
When I try to run this application, I get runtime error 40006 "wrong protocol or connection state for the requested transaction or request".
Can someone please look at the code and tell me what i'm doing wrong?
Thanks.
Winsock Syntax? (To Request A Website With The Winsock Control)
Ok, I don't know very much about Winsock and am just now starting to use it. I'm making an anonymity program that modifies referer and user agent data. I managed to find an example of how its done on planetsourcecode.com but there's a few things that aren't working.
Anyway, when this string is sent, it sends the headers and a request for index.html from the connected host (winsock1.connect domain.com 80).
GET index.html HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-comet, */*
Accept-Language: en
Accept-Encoding: gzip , deflate
Cache-Control: no-cache
Proxy-Connection: Keep-Alive
User-Agent: Whatever
Referer: www.whatever.com
But when I used the website http://ipid.shat.net/ as the domain to see if code mdified the headers or not, it directed me instead to just www.shat.net. How would a browser request information to ipid.shat.net?
Also, I noticed that by sending just that information, cookies don't work properly. What other tags do I have to add onto that for it to recieve my session information? Thanks a lot.
UDP Protocol (Winsock)
I have a UDP connection between two applications that are running on the same machine. A network is not involved. Am I crazy to expect that data I send from one application to another will actually get there. I'm getting a load of binary data at one end when I'm only sending letters of the alphabet!!!
UDP Protocol With Winsock
I am making a program on a network that will search the network for server software that I will also make. I would like to do this without having a designated server for the software to connect to. It will just search the network for servers. I already have a code that will find all the machines on a network, but I need to find specific server machines. Somebody suggested using the Winsock control with a UDP protocol, but I do not know how to do this. Does anyone have any ideas? Thanx.
Winsock And UDP Protocol. Help Me!
Hi all,
After 2 1/2 months, Ice-T is back on VB City. But my sudden arrival brings joy but starts off with new problems. Ok, I'm trying to get the hang of the UDP protocol but I can't seem to get it to work. Can someone tell me how to use UDP for the Winsock control or show me a site where they do?
By the way, I keep getting a message saying "Run Time Error 126". What is that?
Thanks.
Bacon And Eggs: A day's work for the chicken and... a lifetime's investment for the pig.
Rahul
Help With Socks Protocol And Winsock
I'm interested in incorporating a proxy option so people can remain anonymous while updating lists of statistics. I looked around and I found an explanation of the protocol, but It was extremely confusing. I was wondering if anyone here has worked with socks before and can perhaps provide some help or even code examples
Wrong Protocol With Winsock
It sais wrong protocol with this code, can you help me find the bug?
THis is teh code that I have an error with:
Private Sub Command1_Click()
Winsock1.SendData txtChat.Text
DoEvents
txtMain.Text = txtMain.Text & vbCrLf & txtChat.Text
txtChat.Text = ""
End Sub
This Here is my whole code:
Private Sub Command1_Click()
Winsock1.SendData txtChat.Text
DoEvents
txtMain.Text = txtMain.Text & vbCrLf & txtChat.Text
txtChat.Text = ""
End Sub
Private Sub Form_Load()
' set up the winsock to connect to the local computer
Winsock1.RemoteHost = "127.0.0.1"
Winsock1.RemotePort = 10101
Winsock1.Connect
End Sub
Private Sub Text1_Change()
End Sub
Private Sub Winsock1_Connect()
' we are connected!
MsgBox "Connected"
End Sub
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
' reset the socket, and accept the new connection
Winsock1.Close
Winsock1.Accept requestID
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim strData As String
' get the data from the socket
Winsock.GetData strData
' display it in the textbox
txtMain.Text = txtMain.Text & vbCrLf & strData
' scroll the box down
txtMain.SelStart = Len(txtMain.Text)
End Sub
Private Sub Winsock1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
' an error has occured somewhere, so let the user know
MsgBox "Error: " & Description
' close the socket, ready to go again
End Sub
Winsock -- Telnet, Ftp Protocol
Hi
i need help with winsock and telnet.
Basically, i can connect to a Unix machine and get plain ASCII replies from port 13 (clock) and port 21 (ftp control). When i connect to port 23 i'm only getting 3 wierd characters back and no response when i send any login details. I checked the port numbers were correct in /etc/services on the Unix machine.
I've looked at RFC 854 and some of the other RFC docs but they seem to go a bit over my head.
I only need to send a set of about 10 instructions to the UNIX machine and then log off so can i send the instructions one after the other?
Sorry i'm vague, thanks in advance
Winsock Wrong Protocol?????
I open another form from the main one which sends email right! Decide not to send anything and just close then i press connect to connect to the server from the main form and i get this error Wrong Protocol?
Highlights this line:
tcpIn.SendData TextOut & vbCrLf
Why Why whY???
Uploading Files Using Winsock On FTP Protocol
I got a small problem with the WInsock on FTP Protocol, when i'm uploading.
I've set up an ftp server on my computer (localhost) for testing, and i set its maximum speed to 2kb/sec. Now when i upload the data from my program, it sends data in large chunks, and wait for them to ready.
I mean, it normally sends, ~32KB of data at once, and waits for it to be recieved by the server, and sends another chunk.
The TranferProgress and TransferComplete events get triggered when they should not be triggered. The server is sent all the data, with loads "queuing" up.
How can i make it to send a specified amount of bytes (8192), and when it is processed by the server (The 8192 bytes), it will send the other next piece etc?
thanks!
Winsock Problem - Wrong Protocol
hi, i'm the new comer in this forum and newbies to the VB coding. i'm on doing a simple sending email function using visual basic 6.0. i've use the coding below and it's seem ok for the previous time before i adding some other coding that i think would not effect the winsock one. later an error "wrong protocol or connection state for ther requested transaction or request" appear. its highlight this -> Winsock1.GetData InData
previous, i can send an email successfully, later, it become like this. anyone if have any solution, please help the newbies. Thank in advance for any solution.
for refference, this is my coding on winsock:
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim InData As String
Winsock1.GetData InData
If Left(InData, 3) = "220" Then
i250 = 1
Winsock1.SendData "HELO " & Winsock1.LocalHostName & vbCrLf
End If
If Left(InData, 3) = "250" Then
If i250 = 1 Then i250 = 2: Winsock1.SendData "MAIL FROM: " & Text5 & vbCrLf: Exit Sub
If i250 = 2 Then i250 = 3: Winsock1.SendData "RCPT TO: " & Text6 & vbCrLf: Exit Sub
If i250 = 3 Then i250 = 4: Winsock1.SendData "DATA" & vbCrLf: Exit Sub
If i250 = 4 Then
Winsock1.SendData "QUIT" & vbCrLf
Winsock1.Close:
MsgBox "Mail sending is complete.", vbInformation, "Done"
Exit Sub
End If
End If
If Left(InData, 3) = "354" Then
Winsock1.SendData "FROM: " & Text5 & vbCrLf
Winsock1.SendData "TO: " & Text6 & vbCrLf
Winsock1.SendData "SUBJECT: " & Text7 & vbCrLf
Winsock1.SendData "" & vbCrLf
Winsock1.SendData Text8 & vbCrLf
Winsock1.SendData vbCrLf & "." & vbCrLf
End If
If Left(InData, 1) = "5" Then
MsgBox "Error: " & Right(InData, Len(InData) - 1), vbCritical, "Error " & Left(InData, 3)
End If
End Sub
i've already redo my coding to the previous one.suppose it's ok.but it still appear the same error. help me frend.tq.
Winsock!! Http Protocol I Hate This
yeah i need help i wanna have winsock log me into my facebook account and i have a ruff idea of how to do so but when i sniff for the packets they dont show up and if they did how would i still go about doin this
Winsock [Messenger Protocol Stuff]
Hey, i have figured out how to Connect to the messenger server with this Code:
Code:
Connection.RemoteHost = "messenger.hotmail.com"
Connection.RemotePort = "1863"
Connection.Connect
How ever i don't know where to go from here, like how to login? load a Buddy list and that..can anyone help?
- L3mmy
Winsock - Daytime Protocol Problem
Hi,
Could anyone please check the code below and tell me what is wrong with it? I should be getting the date/time as a string, but all I get is "?4???????‰???".
Private Sub Command1_Click()
Dim strRemoteHost As String
strRemoteHost = "ntp2a.mcc.ac.uk"
Me.Winsock1.Close
Winsock1.LocalPort = 0
Me.Winsock1.Connect strRemoteHost, 13
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Me.Text1.Text = ""
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim strData
Me.Winsock1.GetData strData
Me.Text1.Text = Me.Text1.Text & Trim(strData)
End Sub
Private Sub Winsock1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
MsgBox "Winsock Error: " & Number & vbCrLf & _
Description, vbInformation
End Sub
Thanks in advance for any help.
'enzy
Winsock - Wrong Protocol Error
When I try downloading a file with winsock, I get the following error: "Wrong protocol or connection state for the request transaction or request".
After reading many threads on the forums, I've learned that this is mainly caused by the connection state that must be '7'.
Actually, this is not my problem, as I am correctly connected to the ftp. On the same connection, I have been able to download a 90 bytes text file succesfully.
The file I am trying to get is exactly 247kb and I am only receiving from 220k to 240k of the file each time I try it. This makes the file unusable.
Any idea? Thanks.
Winsock Protocol Error On Senddata
Okay, I have a real question this time. Lol.
This is my script:
Code:
Dim intLoginTries As Integer
Private Sub Form_Load()
tcpClient.RemoteHost = "xxx.xxx.xxx.xxx"
tcpClient.RemotePort = 1001
tcpClient.Connect
cmdLogin.Default = True
End Sub
Private Sub tcpClient_DataArrival(ByVal bytesTotal As Long)
Dim vtData As String
tcpClient.GetData vtData
If vtData = "True" Then
strUserName = txtUserName.Text
Unload frmLogin
frmClient.Show
Else
intLoginTries = intLoginTries + 1
End If
If intLoginTries > 3 Then
frmLogin.Enabled = False
End If
End Sub
Private Sub cmdLogin_Click()
tcpClient.SendData "Login;" & txtUserName.Text & ";" & txtPassword.Text
End Sub
Private Sub tcpClient_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)
MsgBox "Winsock Error number " & Number & vbCrLf & Description, vbExclamation, "Winsock Error"
End Sub
The form_load event procedure supposedly makes a connection to the server. It works fine on all 1,000,000,000 of my computers at home (exaggeration?)
So the problem is when I distribute the package. I deploy it with all proper files I beleive... the mswinsck.ocx, the dao files and all those files that the package wizard listed to send.
A user installs the program and it never connects to the server when they open this log in window. It loads the form just fine without errors. But the connection is never made?
Mail Using Winsock Protocol (urgent)
Hi friends,
I am using winsock to send email but when i am using any other account in to mailid and from mailid than outlook it takes almost 30 mins to send the mail. I dont know how to send attachment using this.
If someone can please help me
Thanx in advance.
File Transfer With Winsock Using Any Protocol
I need simplest code with good explanation or just code (I'll try to figure out myself what each line does), but with explanation would be best. I need to transfer a file, from one computer to another one, directly (connecting using IP and ports). Please help, I been looking for a explanation for long time already, but I just can't find the right one!!!
~~Andy
Programs and requests for them for FREE.
http://falstok.fly.to
Sending Binary Data Through UDP Protocol (Winsock)
I am making a client program that requires binary data to be sent to the server through the UDP protocol. (I'm using the winsock control)
I've been using the following code...
Dim ByteX as Byte
Dim X as Long
Dim FileX as Interger
Winsock3.LocalPort = 10000
Winsock3.RemoteHost = "211.233.70.51"
Winsock3.RemotePort = 9500
FileX = FreeFile
Open App.Path + "udp1.dat" for Binary as FileX
X = 1
Do Until X = FileLen(App.Path + "udp1.dat") + 1
Get #FileX, X, ByteX
Winsock3.SendData ByteX
X = X + 1
Loop
Close FileX
When I send data this way, it sends 52 packets containing 1 byte each instead of 1 packet containing 52 bytes. How can I send binary data using the UDP protocol that will send only 1 packet of data? Is there a way to store the binary data into the output buffer, and then send the packet all together?
Wrong Protocol Or ConnectionState In Winsock Control
hi all,
I have a client server application that uses a winsock control,
currently with my needs, i need the client be able to CONNECT to the server
and LISTEN to a local port at the same time. I have arise to this problem bec. my server whenever it got a client connection, it will create a FORM to the specific client. The problem is, i want the created form be able to communicate with the client also.
The connection of the client and server is being established. But when the created form is talking to the client that made him, i got an error of Wrong Protocol or Connection state somting lke that. The connection of the created form to the client is with the use of the Client Port that is Listening.
ConnectionRequest is being seen in the Client but whenever i am sending data to it. i got the error.
Is there anybody who can help me with this setup or possibly a better solution.
Thx.
Winsock Giving Error #40006 Wrong Protocol
I'm trying to use Winsock to start a telnet session, but keep getting an error:
#40006 Wrong protocol or connection
Code:
Private Sub Make_List(strServer As String, lngPort As Long, strPath As String)
Dim strMessage As String
With frmMain.sckMain
.Close
.RemoteHost = strServer
.RemotePort = lngPort
.Connect
.GetData strMessage
If .State = sckConnected Then
.SendData "cd " & strPath & vbCrLf
DoEvents
.SendData "ls -1 > list1"
DoEvents
.Close
End If
End With
End Sub
strServer is the IP address of the UNIX machine
lngPort should be 23, I've also tried 21 and 25
I'm getting the error on the .GetData
Problem With Downloading A File Using Ftp Protocol And Winsock Control In Vb6
Hi,
I have written an FTP client using winsock control in vb6.
Everything goes fine except downloading a file with our intranet server. downloading with other ftp server works fine. but if i download a file from our intranet server, it donwload the file, but the file is not complete. and it will not produce any errors. response is trnanfer complete. I am really struggling to findout what makes this behaviour.
can anyone please help me..
Thanking you in advance.
regards
praveenp
File Downloading Problem Using Ftp Protocol And Winsock Control In Vb6
Hi,
I have written an FTP client using winsock control in vb6.
Everything goes fine except downloading a file with our intranet server. downloading with other ftp server works fine. but if i download a file from our intranet server, it donwload the file, but the file is not complete. and it will not produce any errors. response is trnanfer complete. I am really struggling to findout what makes this behaviour.
can anyone please help me..
Thanking you in advance.
regards
praveenp
Winsock Request
I have a Winsock component setup right now on my network, exact same as whats in this thread
I would like to know if a similar control can be built using Winsock to do this:
1) Connect to a remote computer, by IP address. (I have a code that determines the IP address of the remote machine already..)
2) Open a .txt file, send it back to (my) the users computer and displays it in a text box on screen.
3) On command button press, take what ever is in my text box, and send the file back to the remote computer and save it.
Kind of like editing a configuration file, remotly.
I know the application would have to be running on the remote end as well as my end for this to work, if its at all possible.
I would really like to do this, I appeciate everyones help in advance!
Winsock Example Request
I'm at work where I can't get to any help files for winsock. Can somebody give me a quick example of the code required to create a winsock instance, including telling it to listen and respont to internet requests? I'm going to attempt to make MS Access act like a simple server, and I just don't have the resources here to get it running. Thanks!
Winsock HTTP Request Help
I need help with this, my wrapper uses winsock to send requests and the close event does not fire which makes the connection stay open forever, my wrapper is at the bottom it is a attachment
WinSock Request Accept
Hey,
I have been trying to get this code to work, It's most likely something stupid am doing, but i cant get my server program type thingie to accept the Request ID from the client program thingie... Here is the code to the part that it says is wrong (If you need anyother parts tell me an i'll post it)
Code:
Private Sub HostSocket_ConnectionRequest(ByVal requestID As Long)
'Show Request In Host Log
HMsg = "Connection request id " & requestID & " from " & HostSocket.RemoteHostIP
HostLog.AddItem (HMsg)
sRequestID = requestID
iSockets = iSockets + 1
ConNumber.Caption = iSockets
Load HostSocket(iSockets)
HostSocket.LocalPort = 1007
HostSocket.Accept requestID
End Sub
PS. I looked at an example to help me with this, so am not sure whats wrong.
Thx in advance.
Ali.
Multiple Request With Winsock
Greeting,
I have a little problem with winsock. I have a server and several
client. I want to transfer text from server to client trough the network
In this case, I using winsock to transfer the text. It is ok when only 2
computer connected (1 server and 1 client). But, when 3 computer
Connected (1 server and 2 client) I cant broadcast text to all client.
Does any body know how to broadcast text fom server to client trough the
network and winsock?
thanks
Rgds,
Rano Nugrah Agung Homan
Winsock Sample Request
Hi all,
I need to make a server app for my project. I have concluded that I will need to implement Winsock to do so. I have read up on all Winsock articles here (and many others elsewhere) and have downloaded and studied all the samples I could find.
However, I am unable to do what I want because:
- The tutorials say that the IP address or friendly name of the target computer MUST be specified for the Winsock control to connect on the other side. This strikes me as very backward, as I can not always know what IP addresses my customers' network stations will be running on and cannot also predict their friendly names. Does this have to be hard-coded?
- Try as I may, I cannot create a working sample of Server.Exe and Client.Exe to run on the same machine as I cannot afford the luxury of testing my code over two machines. Is there any way I can debug / test on one machine?
If any member proficient with Winsock (Laura Stephens and Jason Rogers come to mind) would like to help, I shall appreciate a small sample to get me started by solving the above two problems.
GoodGuy
Experience is a bad teacher for its exams precede its lessons.
Edited by - GoodGuy on 12/10/2007 10:23:30 PM
Visual Basic Winsock Sending Get Requests (I Get Wrong Protocol Error)
Here's my code:
Code:
AxWinsock1.RemoteHost = TextBox1.Text
AxWinsock1.RemotePort = 80
Dim request As String
request = "GET " + TextBox1.Text + Chr(10) + Chr(10)
AxWinsock1.Connect()
For i = 1 To tries.Length
If tries.Length - i = 0 Then
Label4.Text = CStr(tries.Length) + " requests sent."
cmdStart.Text = "Start"
Else
AxWinsock1.SendData(request)
Label4.Text = "Sending " + CStr(tries.Length - i) + " requests..."
End If
Next
AxWinsock1.Close()
It gets this error:
Wrong protocol or connection state for the requested transaction or request.
Could someone please tell me how to fix this? Thanks
Oh yeah, I tried closing the connection before opening a new one, and that didn't work either.
Winsock Array Connection Request
i made a post a couple days back gavino answered
im trying to make my multi chat program and well, it isnt goin by too well. for starters the client cant connect
Code:
Private Sub sckSocket_ConnectionRequest(Index As Integer, ByVal requestID As Long)
SockNum = SockNum + 1
Load sckSocket(SockNum)
sckSocket(SockNum).Listen
sckSocket(SockNum).Accept requestID
End Sub
is there sumthing wrong with that?
[VB6] Winsock POST Request Problem
I'm trying to connecto to google.com and translate a simple word (just to test if works).
And I have a problem when I'm sending POST request data, here is my code:
Code:
Private Sub Command1_Click()
Winsock1.Close
Winsock1.Connect "www.google.com", "80"
End Sub
Private Sub Winsock1_Connect()
Dim packet As String
Dim strpost As String
strpost = "hl=it&ie=UTF8&text=hello&sl=en&sl=en&tl=it&tl=it"
packet = "POST /translate_t HTTP/1.1" & vbCrLf
packet = packet & "Host: www.google.com" & vbCrLf
packet = packet & "Accept: */*" & vbCrLf
packet = packet & "Accept-Language: it,it-it;q=0.8,en;q=0.5,en-us;q=0.3" & vbCrLf & vbCrLf
packet = packet & "Content-Type: " & "application/x-www-form-urlencoded" & vbCrLf
packet = packet & "Content-Length: " & Len(strpost) & vbCrLf
packet = packet & strpost
Winsock1.SendData packet
Text1.Text = Text1.Text & packet
End Sub
Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
Dim data As String
Winsock1.GetData data
Text2.Text = Text2.Text & data & vbCrLf
End Sub
As you can see I want the GETDATA in Text2.Text but I recieve this error:
Code:
HTTP/1.1 411 Length Required
Date: Fri, 01 Aug 2008 13:57:24 GMT
Content-Type: text/html; charset=UTF-8
Server: GFE/1.3
Content-Length: 1357
{html code}
What's the problem?!
Thanks in advance.
WinSock Connection Request Error!
When I use this code for a winsock connection request:
Code:
Private Sub Winsock1_ConnectionRequest(ByVal requestID As Long)
Winsock1.Accept requestID
txtRecive.Text = txtRecive.Text & vbCrLf & "ChatX: Connection Request Detected."
End Sub
I get runtime error 40020:
Invalid operation at current state
when I hit debug it highlights that code snippet up there! HELP
Winsock Server Connection Request Problem
hey, this is my code
Code:
Private Sub wskServer_ConnectionRequest(ByVal requestID As Long)
Dim msgboxResult
msgboxResult = MsgBox("A connect request has been initiated by: " & wskServer.RemoteHostIP & vbNewLine & "Would you like to accept it?", vbYesNo, "Connection Request")
If msgboxResult = vbYes Then
wskServer.Accept requestID
isServer = True
End If
End Sub
now the problem is, whenever i run it, and have a client try to connect to it, this is the error the server gives me on this line "wskServer.Accept requestID"
---------------------------
Project1
---------------------------
Run-time error '40020':
Invalid operation at current state
---------------------------
OK
---------------------------
can someone help?
EDIT: and yes, i did try:
wskServer.Close
wskServer.Accept requestID
but it doesn't work. if u need 2 see my whole code to know whats going on, just let me know
Winsock/cookie Request Entity Too Large...
hi i'm sending a cookie header via winsock but i think it's to large cause I'm receiving a "Request Entity Too Large" in the HTTP Response. is there a way around this?
Winsock - Notification When User Accepts Request
Does anyone know of a way that an initiator of a Winsock connection can be notified when a user on the other end accepts the connection ? I'm new to Winsock, so my terminology might not be the best, but I'm trying to find out if the inititator has any way of knowing that a connection was made before any messages are exchanged?
Thanks for any help....
HELP: Winsock To Send HTTP POST REQUEST To A Machine
Hello,
I would like to use visual basic to send data to a machine using an HTTP Post request, and cannot decide on the best way to do it. Can I use winsock. Please bear in mind the following.
I am sending a mult-part message (kind of like an email with attachments). It's actually a multimedia message in the MM7 format -> this is similar to email, a multipart MIME message.
I MUST post to a destination using the following format:
http://192.168.3.75:2097/mm7
I need to then send the data which I've formated according to the MM7 spec.
I need to receive responses from the receving application.
Any help would be greatly appreciated.
Thanks
Ben
Winsock Connection Prob: "Request To Connection Time Out".
Hi All,
I am developing chat application like Yahoo and MSN messenger. Also i have almost completed it. I have two applications one is server appliation which will be run on chat server machine. the other is client appliation which will be used at any corner of the world.
Its working fine on my network. Ya, it is also working fine over network but with some misbehaviour. Sometimesm, it allow someone to login and sometimes it doesn't and gives "Request to connection time out" error.. I can't find the reason y it is happening.
I have developed this in visual basic and used winsock control.
MSN Protocol
hey
ive almost figured the msn protocol out but im havin some problems...
im sending
"VER 0 MSNP9 CVR0"
everything works that ive implemented...but i never recieve any
ILN messages
FLN messages
NLN messages
so ill never know my contatcs online/offline status..anybody have any idea why this is happening?
Help With A Protocol
hey im using visual basic 6,and the microsoft winsock control the protocol epxlanation is here
http://cvs.sourceforge.net/cgi-bin/v...type=text/html
i really dont understand any of it so if someone could look at it and maybe give me an example of how i would login to the slsk server an help would be appreciated thank you
chris
MPI Protocol
Hi,
does anyone know anything about MPI protocol and especially if VB supports it?
Thanks in advance...
UDP Protocol In CE?
Is there any way I can use the UDP protocol in a CE project? The CE Winsock control only supports TCP and IRDA. Can I get a different control somewhere else that will work?
Thx!
Need Help With FTP Protocol...
I am building an FTP Client, and I have a "bit" of a problem...
This the log of my client:
[12:00:13]- Connecting
[12:00:13]- Connected
[12:00:14]- User Logged In!
[12:00:16]- You Are In /
[12:00:16]- TYPE A OK
[12:00:16]- Closing Data Socket
[12:00:16]- Data Socket Closed
[12:00:16]- Sending PASV
[12:00:17]- Need to connect to: ***.***.***.**, Port: 34573
[12:00:17]- Closing Data Socket
[12:00:17]- Data Socket Closed
[12:00:17]- Data Socket Is Opening...
[12:00:18]- Data Socket Is Connected!
[12:00:18]- 150 Opening ASCII mode data connection for file list
[12:00:19]- Data Socket Closed!
now that seems to get no where..
I have to sockets, on for the commands and on for the data.
as you can see the DATA socket is connected to the server, and a trensfer is being started, but nothing happens !@? and the data socket is for some reason CLOSED!
1. The LIST command should be sent from the DATA socket?
2. When I use TYPE A means the type of Transfer is ASCII, whet happens If I get a picture file? will it become invalid?
3. why the data socket closed?!
Thanks in advanced
|