Results 1 to 6 of 6
  1. #1
    orx's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Estonia
    Posts
    59
    Reputation
    11
    Thanks
    4

    Winsock help please?

    Hi there , i would need some help , i am in trouble with winsock 6.0 in visual basic 2008 express , i wrote simple chat progam , i made it like so , ill post few parts of code:

    Server side:

    Starts listening :
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    AxWinsock1.Close()
    AxWinsock1.LocalPort = TextBox1.Text
    AxWinsock1.Listen()

    End Sub

    Connection request:
    Private Sub AxWinsock1_ConnectionRequest(ByVal sender As Object, ByVal e As AxMSWinsockLib.DMSWinsockControlEvents_ConnectionR equestEvent) Handles AxWinsock1.ConnectionRequest
    TextBox6.Text = TextBox6.Text + AxWinsock1.RemoteHostIP + " Is Connecting"
    Dim x As Integer

    AxWinsock1.Accept(x)


    End Sub
    And here is probably the error also , i can see that if i try to connect to my server , it launches the line to textbox , that i'm trying to connect , but the winsock doesn't accept the connection :S , in vb6 i would write like: winsock1.accept requestID . and it works , but in vb 2008 it wants the requestID as integer, and i could not get the connection working :S , i need some help. and also , how can i check my connection request id? some help please? i will be waiting. if someone is interrested with helping me , you could also add me to msn , lauriadi@hotmail.com , thank you very much

    -OrX|=-

  2. #2
    Toymaker's Avatar
    Join Date
    Feb 2008
    Gender
    male
    Location
    Hannah, Montana
    Posts
    659
    Reputation
    14
    Thanks
    193
    My Mood
    Amused
    I am attaching a simple winsock source code that I used when first learning and It should already do what you're trying at so you can learn from it and improve it.

  3. #3
    orx's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Estonia
    Posts
    59
    Reputation
    11
    Thanks
    4
    is it for vb 2008 express?

  4. #4
    orx's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Estonia
    Posts
    59
    Reputation
    11
    Thanks
    4
    Dude , damn , i did it with vb 06 , works great , but i need it for vb 2008 , because there i can use more controls , i need to make an remote exploit..

  5. #5
    GG2GG's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    United Kingdom
    Posts
    3,382
    Reputation
    21
    Thanks
    4,294,967,295
    My Mood
    Blah
    dont doubble post, also try giving somthing back to mpgh before beggin for more code.

  6. #6
    orx's Avatar
    Join Date
    Jun 2008
    Gender
    male
    Location
    Estonia
    Posts
    59
    Reputation
    11
    Thanks
    4
    Can you call it begging? , hmm? , i dont feel like begging for code lol... i could code it my self... but it just seems to be impossible , i dont know how to get the id of connection request , and its probably impossible to do , what im trying to do... with winsock dll , sorry for double post.

Similar Threads

  1. [Help Request] Help Please ! Crossfire PH or whatever
    By maek0witzki33 in forum CrossFire Help
    Replies: 10
    Last Post: 05-28-2013, 08:18 PM
  2. [Help Request] Black Cipher Help [please help]
    By zubni in forum Combat Arms Help
    Replies: 25
    Last Post: 05-14-2011, 07:50 PM
  3. [Help Request] New. Help Please :)
    By xclutchx in forum Vindictus Help
    Replies: 8
    Last Post: 05-05-2011, 01:52 PM
  4. [Help Request] help please
    By alpha3po in forum Combat Arms Help
    Replies: 6
    Last Post: 05-01-2011, 04:29 PM
  5. [Help Request] [ANSWERED]crossfire Help Please.
    By ownedpjer in forum CrossFire Help
    Replies: 2
    Last Post: 04-30-2011, 02:53 AM

Tags for this Thread