




VB De Sock4 Porxy Kulllanmak???? Acill!!!!!
-
Selam VB de bi server/client tarzı bi programda veya bi irc serverına bağlanmak için Sock4 ve sock5 porxy üzerinden bağlantı nası gerçekleştiririz? bildiğim kadarıyla sock4 serverlara yollllancak bütün connection request lar ve kodlar 2 sayı sistemi kulanılmak zorunda.
Kısaca porgramızda sock server üzerinden bağlantı kurma kailyeti nası kazandırabiliriz? bunun için hazır component ( OCX ) warmı??
TEşekürler -
MeMaTi3169 bunu yazdı:
-----------------------------
Selam VB de bi server/client tarzı bi programda veya bi irc serverına bağlanmak için Sock4 ve sock5 porxy üzerinden bağlantı nası gerçekleştiririz? bildiğim kadarıyla sock4 serverlara yollllancak bütün connection request lar ve kodlar 2 sayı sistemi kulanılmak zorunda.
Kısaca porgramızda sock server üzerinden bağlantı kurma kailyeti nası kazandırabiliriz? bunun için hazır component ( OCX ) warmı??
TEşekürler
-----------------------------
planet-source-code.com da fazlasıyla var. ama üye olmazsan sadece 5 tane indirebilirsin -
valla bildiğim kadarı ile türkiyede irc yazılımından en ii anlayan kişi uranus babadır. bence konuyu git
ona sor. irc.playirc.net serverında bulabilirsin -
mesele ircd program değil. Mesele VB ile sock proxy kullanarak client/server bi program yapmak?
Charmander o sitede bulamadım. sen bi zahmet code yazıp paste yaparmısın Çok Sağol -
http://www.socks.nec.com/protocol/socks4.protocol
-
MeMaTi3169 bunu yazdı:
-----------------------------
mesele ircd program değil. Mesele VB ile sock proxy kullanarak client/server bi program yapmak?
Charmander o sitede bulamadım. sen bi zahmet code yazıp paste yaparmısın Çok Sağol
-----------------------------
Tamam. Ama şu an elşimde yok sock4 ile ilgili kod. -
nemati winsocks un ayarlaında war biraz kurcalarsan yapabilirsin
-
ir2 winsock un neresinde sock proxy ayarları war. Anlatırmısın?
-
winsocks tıkla sağ alttaki özelliklerinde war !!
-
www.planet-source.com da arattır veya mail adresini verirsen sana daha önce calışmasını yaptıgım kodları gönderebilirim
-
Sock 4 falan ne demek istediğini anlamadım :)..Irc programı yapıcam yardım falan desen daha ii olurdu..Ama dur ben şöle bişe buldum irc soketi diye bi user kontrol :)
'Yeni bir user control ekle bunları yaz
Option Explicit
Public Event CloseSck()
Public Event Connect()
Public Event ConnectionRequest(ByVal requestID As Long)
Public Event DataArrival(ByVal bytesTotal As Long)
Public Event 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)
Public Event SendComplete()
Public Event SendProgress(ByVal bytesSent As Long, ByVal bytesRemaining As Long)Private WithEvents cmSocket As CSocketMaster
Private Sub UserControl_Initialize()
Set cmSocket = New CSocketMaster
End SubPrivate Sub UserControl_Terminate()
Set cmSocket = Nothing
End SubPrivate Sub UserControl_Resize()
UserControl.Width = 420
UserControl.Height = 420
End Sub
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
Me.LocalPort = PropBag.ReadProperty("LocalPort", 0)
Me.Protocol = PropBag.ReadProperty("Protocol", 0)
Me.RemoteHost = PropBag.ReadProperty("RemoteHost", "")
Me.RemotePort = PropBag.ReadProperty("RemotePort", 0)
Me.Tag = PropBag.ReadProperty("Tag", "")
End SubPrivate Sub UserControl_WriteProperties(PropBag As PropertyBag)
PropBag.WriteProperty "LocalPort", Me.LocalPort, 0
PropBag.WriteProperty "Protocol", Me.Protocol, 0
PropBag.WriteProperty "RemoteHost", Me.RemoteHost, ""
PropBag.WriteProperty "RemotePort", Me.RemotePort, 0
PropBag.WriteProperty "Tag", Me.Tag, ""
End SubPrivate Sub cmSocket_CloseSck()
RaiseEvent CloseSck
End SubPrivate Sub cmSocket_Connect()
RaiseEvent Connect
End SubPrivate Sub cmSocket_ConnectionRequest(ByVal requestID As Long)
RaiseEvent ConnectionRequest(requestID)
End SubPrivate Sub cmSocket_DataArrival(ByVal bytesTotal As Long)
RaiseEvent DataArrival(bytesTotal)
End SubPrivate Sub cmSocket_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)
RaiseEvent Error(Number, Description, sCode, Source, HelpFile, HelpContext, CancelDisplay)
End SubPrivate Sub cmSocket_SendComplete()
RaiseEvent SendComplete
End SubPrivate Sub cmSocket_SendProgress(ByVal bytesSent As Long, ByVal bytesRemaining As Long)
RaiseEvent SendProgress(bytesSent, bytesRemaining)
End SubPublic Property Get RemotePort() As Long
RemotePort = cmSocket.RemotePort
End PropertyPublic Property Let RemotePort(ByVal lngPort As Long)
cmSocket.RemotePort = lngPort
End PropertyPublic Property Get RemoteHost() As String
RemoteHost = cmSocket.RemoteHost
End PropertyPublic Property Let RemoteHost(ByVal strHost As String)
cmSocket.RemoteHost = strHost
End PropertyPublic Property Get RemoteHostIP() As String
RemoteHostIP = cmSocket.RemoteHostIP
End PropertyPublic Property Get LocalPort() As Long
LocalPort = cmSocket.LocalPort
End PropertyPublic Property Let LocalPort(ByVal lngPort As Long)
cmSocket.LocalPort = lngPort
End PropertyPublic Property Get State() As SockState
State = cmSocket.State
End PropertyPublic Property Get LocalHostName() As String
LocalHostName = cmSocket.LocalHostName
End PropertyPublic Property Get LocalIP() As String
LocalIP = cmSocket.LocalIP
End PropertyPublic Property Get BytesReceived() As Long
BytesReceived = cmSocket.BytesReceived
End PropertyPublic Property Get SocketHandle() As Long
SocketHandle = cmSocket.SocketHandle
End PropertyPublic Property Get Tag() As String
Tag = cmSocket.Tag
End PropertyPublic Property Let Tag(ByVal strTag As String)
cmSocket.Tag = strTag
End PropertyPublic Property Get Protocol() As ProtocolConstants
Protocol = cmSocket.Protocol
End PropertyPublic Property Let Protocol(ByVal enmProtocol As ProtocolConstants)
cmSocket.Protocol = enmProtocol
End PropertyPublic Sub Accept(requestID As Long)
cmSocket.Accept requestID
End SubPublic Sub Bind(Optional LocalPort As Variant, Optional LocalIP As Variant)
cmSocket.Bind LocalPort, LocalIP
End SubPublic Sub CloseSck()
cmSocket.CloseSck
End SubPublic Sub Connect(Optional RemoteHost As Variant, Optional RemotePort As Variant)
cmSocket.Connect RemoteHost, RemotePort
End SubPublic Sub GetData(ByRef data As Variant, Optional varType As Variant, Optional maxLen As Variant)
cmSocket.GetData data, varType, maxLen
End SubPublic Sub Listen()
cmSocket.Listen
End SubPublic Sub PeekData(ByRef data As Variant, Optional varType As Variant, Optional maxLen As Variant)
cmSocket.PeekData data, varType, maxLen
End SubPublic Sub SendData(data As Variant)
cmSocket.SendData data
End Sub'İnşallah işeler yaparsın msnye ekle istersen gversonic@mynet.com..