+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    May 2009
    Posts
    13

    Question CSocketPlus Binary Data Transfer = SLOW!

    I'm coding a RAT in VB5 that uses a proxy server to handle the incoming reverse connections from multiple remote servers and the client. I've gotten most everything working well, including simple session encryption and binary transfers using CSocket-1.0.12 for the servers/client and CSocketPlus for the proxy... however, I've noticed that binary transfers this way are really SLOW, even when servers and client are connecting to the proxy server all via LAN, as compared to it being much speedier when the client/servers are directly connected to each other without going through the proxy. (This makes me suspect its an issue with CSocketPlus.)

    Does anyone have any experience with doing large binary transfers between multiple connections with CSocketPlus? Any suggestions would be appreciated...

  2. #2
    Senior Member zorgion's Avatar
    Join Date
    May 2009
    Location
    Hueco Mundo
    Posts
    627
    Create your own transfer function:p
    http://home.no/zorgion/bsod.jpg

  3. #3
    Senior Member
    Join Date
    Jun 2008
    Location
    x64
    Posts
    1,537
    Look in the VB section,, there are many file transfer examples there.. Maybe you could try to multithread the transfer?! just an idea..

  4. #4
    Junior Member
    Join Date
    May 2009
    Posts
    13

    Post

    Quote Originally Posted by zorgion View Post
    Create your own transfer function:p
    What do you mean? Keep in mind, I'd like to keep all data transfer contained within just one connection to the proxy, without having to spawn new connections just to transfer files and what not.

    All I'm doing is:

    Code:
       sck.GetData Index, tmp   'from one session
       If Index = BridgedClient Then
          sck.SendData BridgedServer, tmp   'from the client to the server
       End If
       If Index = BridgedServer Then
          sck.SendData BridgedClient, tmp   'from the server to the client  
       End If
    I don't see how I can make it any simpler. I don't even make it wait until sck_SendComplete to send the next batch of data. I wonder if its something within the CSocketPlus class that is slowing it down (flow control) maybe?

  5. #5
    Senior Member Megrem's Avatar
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    278
    it isn't really clever to use vb6 for a proxy:
    when the data of the server receives, the proxy has to take it, bind the socket, load the data into the memory and finally send it.. vb is just too slow for things like that..
    the second problem will be the internet connection of the proxy, because i don't think that it has 1mb upload to send this massive amounts of data *lol*

  6. #6
    Junior Member
    Join Date
    May 2009
    Posts
    13
    Quote Originally Posted by Megrem View Post
    it isn't really clever to use vb6 for a proxy:
    when the data of the server receives, the proxy has to take it, bind the socket, load the data into the memory and finally send it.. vb is just too slow for things like that..
    Well, in this case, the ports are only bound once upon initial connection -- it maintains a constant session with the servers so long as the remote system is up and online, only transferring data once the client connects to the proxy server and "bridges" to one of the servers. So binding isn't taking any extra time. It seems to be something with the way CSocketPlus handles the socket array, is all I can think of...

    the second problem will be the internet connection of the proxy, because i don't think that it has 1mb upload to send this massive amounts of data *lol*
    Yeah, it wouldn't work well running on a residential home system with limited uplink capacity, but somewhere commercial like on a public library terminal with like a T3 connection would be doable...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Binary Hero is SCAMMER!!!
    By who-tr in forum Off-Topic
    Replies: 61
    Last Post: 30-12-2008, 19:12
  2. Winsock lags? ( slow ).
    By MujaHid in forum Visual Basic Help
    Replies: 18
    Last Post: 20-06-2008, 08:59
  3. How send & recv Binary Data with WinsockAPI?
    By ph1re in forum Delphi Help
    Replies: 3
    Last Post: 10-11-2007, 13:09
  4. Transfere Binary Code
    By perito in forum Delphi Help
    Replies: 5
    Last Post: 05-04-2006, 15:53
  5. Replies: 2
    Last Post: 02-12-2005, 23:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.