Iranian Programming Support

Welcome To Csharp TeaM Forum.
For Use All Forum Posts And See Links
Please Register
Thanks
www.Programming.MrForum.net
Csharp TeaM Administrator
Iranian Programming Support

Csharp TeaM

Top posting users this month

Latest topics

» html to c# source code convert help
by launchar Tue Dec 06, 2016 7:22 am

» User input
by nesraz Sun Dec 20, 2015 8:39 am

» darkhaste source mediaplayer baraye b4a
by parham01 Tue Dec 15, 2015 10:31 am

» Tolide esme file gheire tekrari
by sajjad3011 Fri Jul 31, 2015 5:00 pm

» 368 library basic 4 android
by alimusavi71 Fri Jul 17, 2015 6:45 pm

» نرم افزار دریافت لایسنس آنتی ویروس نود 32
by programmer-x Wed Jul 15, 2015 3:19 pm

» help for java applications
by launchar Wed Jul 01, 2015 12:25 am

» Nimbuzz id Maker auto Captcha & Auto add FlooD & id BloCker
by briant Sat Jun 20, 2015 12:46 pm

» best mobile server v.1.0.0 persian edition
by programmer-x Fri Jun 19, 2015 12:41 am

» plz help me i neez xml code for spy bot
by alone Sun Mar 22, 2015 9:30 pm

» Dialogs Lib {Basic 4 Android}
by abdo0o Mon Mar 09, 2015 4:02 pm

» Room + PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:06 am

» PV Flooder Nimbuzz 2015
by sholeh Sat Feb 21, 2015 8:03 am

» سی شارپ سورس
by tr0 Wed Dec 24, 2014 12:15 pm

» help plz auto maker ids
by launchar Wed Dec 17, 2014 5:57 pm

» Join Multi Id To Room + Captcha [ Badbuzz Team ] In Seri Ba AgsXMPP !!
by abdo0o Fri Dec 12, 2014 4:47 am

» Amoozesh Ersale Sms Dar B4a
by abdo0o Fri Dec 12, 2014 4:43 am

» help me pls mehran brother
by launchar Wed Dec 03, 2014 6:36 pm

» plz help code Refresh captcha join Room
by ayad53 Wed Dec 03, 2014 12:24 pm

» please Help Me For AutoCaptchaa kardan IdMaker
by abdo0o Tue Dec 02, 2014 12:12 pm

» source C# bot addlist sender by ==> Alone_051@n.c
by walahazrat Mon Dec 01, 2014 2:34 am

» s2a sender tro help me pls
by walahazrat Mon Dec 01, 2014 2:28 am

» Help For {Data id } C# asixmpp.dll
by abdo0o Sun Nov 30, 2014 11:17 pm

» Help C# {Join & Left With Remoter}
by $iahi Tue Nov 25, 2014 10:31 am

» Source Nimbuzz User Searcher By Mehr,an [ Badbuzz TeaM ]
by waseemmalik Wed Nov 19, 2014 11:35 am


    help socket b4a

    Share
    avatar
    $huvalie
    New Member
    New Member

    Posts : 40
    Points : 69
    Thanks : 1
    Join date : 2014-02-09

    Open help socket b4a

    Post by $huvalie on Sat Aug 02, 2014 3:16 pm

    slm bax
    in bakhsh kheyli lazem bod Khande 
    agha man to b4a 1socket tarif kardam
    ba 1done AsyncStreams

    Code:
    Dim test As Socket
     Dim AStreams As AsyncStreams
       Dim buff1() As Byte
       Dim buff2() As Byte

    hala in codaro gozashtam vase connect be nim:

    Code:
    Sub Button1_Click
     test.Initialize("test")
     test.Connect("o.nimbuzz.com",5222,100000)
    End Sub
    Sub test_Connected(Connected As Boolean)As Boolean
       If Connected = True Then
          AStreams.Initialize(test.InputStream,test.OutputStream,"Astreams")
      buff1 = "<stream:stream xmlns='jabber:client' to='nimbuzz.com' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' >"
      buff2 = "<iq type='set' xml:lang='en' id='NLgn' to='nimbuzz.com'><query xmlns='jabber:iq:auth'><username>id</username><password>pass</password><resource>res</resource></query></iq>"
      AStreams.Write(buff1)
      AStreams.Write(buff2)
       End If
    End Sub

    vali error mide Sad 
    ta haminjasham fosil shodam ta neveshtam Khande 
    ye komak konid zahamatam hadar nare KISSING 
    meci Gol 
    avatar
    mbpersian
    Android Admin
    Android Admin

    Posts : 64
    Points : 112
    Thanks : 34
    Join date : 2014-07-11
    Age : 21
    Location : iRan/FaRs/shiRaz

    Open Re: help socket b4a

    Post by mbpersian on Sun Aug 03, 2014 12:47 am

    douste golam
    hanuz kheyli kaar dare o motmaen baash ba in cod b nim connect nmishe.
    behet pishnhaad miknm haddeaksar yek hafte sabr kon ta age shod libesho aamade konam ya age nashod source login be nim ro mizaram tu hamin forum.





    Ba Tashakkor Kardan ( + ) Shakhsiat KhoD Ra Neshan Midahid !
    MBP Inc.
    mbpersian
    avatar
    Mostafa Haghighi
    Super Moderator
    Super Moderator

    Posts : 163
    Points : 298
    Thanks : 99
    Join date : 2013-06-08
    Location : mazandaran

    Open Re: help socket b4a

    Post by Mostafa Haghighi on Sun Aug 03, 2014 2:47 am

    shoma codet taqriban droste ama xmlai k estefade krdi eshtebast
    bad shoma vase connect kamel niaz b data ariyal dari k xmla ro daryaft kni

    in y nemuneast

    tu qesmate new_data bayad y seri xml send beshe ta login kamel beshe

    Code:
    #Region  Project Attributes
       #ApplicationLabel: B4A Example
       #VersionCode: 1
       #VersionName:
       'SupportedOrientations possible values: unspecified, landscape or portrait.
       #SupportedOrientations: unspecified
       #CanInstallToExternalStorage: False
    #End Region

    #Region  Activity Attributes
       #FullScreen: False
       #IncludeTitle: True
    #End Region

    Sub Process_Globals
        Dim x As AsyncStreams
        Dim sk As Socket
    End Sub

    Sub Globals

    End Sub

    Sub Activity_Create(FirstTime As Boolean)
        Activity.LoadLayout("1")
    End Sub

    Sub Activity_Resume
       
    End Sub

    Sub Activity_Pause (UserClosed As Boolean)
       
    End Sub
    Sub Button1_Click
       sk.Initialize("sk")
        sk.Connect("o.nimbuzz.com",5222,5000)
    End Sub
    Sub sk_Connected(Connected As Boolean)As Boolean
     If Connected = True Then
          x.Initialize(sk.InputStream,sk.OutputStream,"x")
            If x.IsInitialized = False Then Return
            Dim buffer() As Byte
            buffer = "<stream:stream xmlns='jabber:client' to='nimbuzz.com' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xml:lang='ar' >".GetBytes("UTF8")
            x.Write(buffer)
            Dim buffer1() As Byte
            Dim str As String = Chr(0) & "id" & Chr(0) & "psw" & ""
            Dim str1 As String = "<auth id='sasl2' xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>" & str & "</auth>"
            buffer = str1.GetBytes("UTF8")
            x.Write(buffer1)
      Else
          ToastMessageShow("cnt",True)
      End If
    End Sub
    Sub Server_NewConnection (Successful As Boolean, NewSocket As Socket)
        If Successful Then
            ToastMessageShow("Connected", False)
            sk = NewSocket
            x.InitializePrefix(sk.InputStream, False, sk.OutputStream, "x")
        Else
            ToastMessageShow(LastException.Message, True)
        End If
    End Sub
    Sub AStreams_NewData (Buffer() As Byte)
        Dim msg As String
        msg = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
           Log(msg)
       If msg.Contains("<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>") Then
           ToastMessageShow("Logined",False)
       End If
       If msg.Contains("<not-authorized/>") Then
          ToastMessageShow("Wrong",False)
       End If
    End Sub
    Sub AStreams_Error
        ToastMessageShow(LastException.Message, True)
    End Sub






    Fighting For Fun!

    avatar
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Open Re: help socket b4a

    Post by iman saeedi on Sun Aug 03, 2014 4:50 am

    mostafa mersi man sockete u ro didiam ali bod faqat ye chanta chiz ta kamel shodanesh dare bug dare teleto to pv msg kon karet daram man
    avatar
    $huvalie
    New Member
    New Member

    Posts : 40
    Points : 69
    Thanks : 1
    Join date : 2014-02-09

    Open Re: help socket b4a

    Post by $huvalie on Sun Aug 03, 2014 12:59 pm

    rnostafa wrote:shoma codet taqriban droste ama xmlai k estefade krdi eshtebast
    bad shoma vase connect kamel niaz b data ariyal dari k xmla ro daryaft kni

    in y nemuneast

    tu qesmate new_data bayad y seri xml send beshe ta login kamel beshe

    Code:
    #Region  Project Attributes
     #ApplicationLabel: B4A Example
     #VersionCode: 1
     #VersionName:
     'SupportedOrientations possible values: unspecified, landscape or portrait.
     #SupportedOrientations: unspecified
     #CanInstallToExternalStorage: False
    #End Region

    #Region  Activity Attributes
     #FullScreen: False
     #IncludeTitle: True
    #End Region

    Sub Process_Globals
        Dim x As AsyncStreams
        Dim sk As Socket
    End Sub

    Sub Globals

    End Sub

    Sub Activity_Create(FirstTime As Boolean)
        Activity.LoadLayout("1")
    End Sub

    Sub Activity_Resume
        
    End Sub

    Sub Activity_Pause (UserClosed As Boolean)
        
    End Sub
    Sub Button1_Click
     sk.Initialize("sk")
        sk.Connect("o.nimbuzz.com",5222,5000)
    End Sub
    Sub sk_Connected(Connected As Boolean)As Boolean
     If Connected = True Then
          x.Initialize(sk.InputStream,sk.OutputStream,"x")
            If x.IsInitialized = False Then Return
            Dim buffer() As Byte
            buffer = "<stream:stream xmlns='jabber:client' to='nimbuzz.com' version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xml:lang='ar' >".GetBytes("UTF8")
            x.Write(buffer)
            Dim buffer1() As Byte
            Dim str As String = Chr(0) & "id" & Chr(0) & "psw" & ""
            Dim str1 As String = "<auth id='sasl2' xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>" & str & "</auth>"
            buffer = str1.GetBytes("UTF8")
            x.Write(buffer1)
       Else
          ToastMessageShow("cnt",True)
       End If
    End Sub
    Sub Server_NewConnection (Successful As Boolean, NewSocket As Socket)
        If Successful Then
            ToastMessageShow("Connected", False)
            sk = NewSocket
            x.InitializePrefix(sk.InputStream, False, sk.OutputStream, "x")
        Else
            ToastMessageShow(LastException.Message, True)
        End If
    End Sub
    Sub AStreams_NewData (Buffer() As Byte)
        Dim msg As String
        msg = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
        Log(msg)
     If msg.Contains("<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>") Then
        ToastMessageShow("Logined",False)
     End If
     If msg.Contains("<not-authorized/>") Then
     ToastMessageShow("Wrong",False)
     End If
    End Sub
    Sub AStreams_Error
        ToastMessageShow(LastException.Message, True)
    End Sub

    mc dadash Gol vali ye negah b code ha mindazi,be server cnct mishe vali id login nemishe,error mide Sad 
    avatar
    Mostafa Haghighi
    Super Moderator
    Super Moderator

    Posts : 163
    Points : 298
    Thanks : 99
    Join date : 2013-06-08
    Location : mazandaran

    Open Re: help socket b4a

    Post by Mostafa Haghighi on Sun Aug 03, 2014 1:22 pm

    koja error mide dada
    che errori?






    Fighting For Fun!

    avatar
    $huvalie
    New Member
    New Member

    Posts : 40
    Points : 69
    Thanks : 1
    Join date : 2014-02-09

    Open Re: help socket b4a

    Post by $huvalie on Sun Aug 03, 2014 1:57 pm

    in erroro mide dadash:
    avatar
    Mostafa Haghighi
    Super Moderator
    Super Moderator

    Posts : 163
    Points : 298
    Thanks : 99
    Join date : 2013-06-08
    Location : mazandaran

    Open Re: help socket b4a

    Post by Mostafa Haghighi on Sun Aug 03, 2014 2:42 pm

    http://up.ehem.ir/uploads/1407087714191.rar
    moshkel y kalame bud
    inam project






    Fighting For Fun!

    avatar
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Open Re: help socket b4a

    Post by iman saeedi on Mon Aug 04, 2014 4:43 am

    ino jaye x_newdata copy konid
    Code:
    Sub x_NewData (Buffer() As Byte)
        Dim msg As String
        msg = BytesToString(Buffer, 0, Buffer.Length, "UTF8")
        Log(msg)
       msg = msg.Replace("""", "'")
     If msg.Contains("<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>") Then
        ToastMessageShow("Logined",False)
     End If
     If msg.Contains("<not-authorized/>") Then
     ToastMessageShow("Wrong",False)
     End If
    End Sub
    avatar
    Armin Ramzani
    Programmer
    Programmer

    Posts : 312
    Points : 559
    Thanks : 61
    Join date : 2014-02-25
    Age : 22
    Location : Iran , Gilan , Lahijan

    Open Re: help socket b4a

    Post by Armin Ramzani on Sun Aug 10, 2014 4:36 am

    mbpersian wrote:
    douste golam
    hanuz kheyli kaar dare o motmaen baash ba in cod b nim connect nmishe.
    behet pishnhaad miknm haddeaksar yek hafte sabr kon ta age shod libesho aamade konam ya age nashod source login be nim ro mizaram tu hamin forum.

    dash hanoz proje ro nazashti ?





    DRINK Be Name Madar DRINK
    Baraye Tashakor kardan Az + Use Konid
    Copy Bardari Ba Zekre Manba Mojaz Mibashad
    avatar
    mbpersian
    Android Admin
    Android Admin

    Posts : 64
    Points : 112
    Thanks : 34
    Join date : 2014-07-11
    Age : 21
    Location : iRan/FaRs/shiRaz

    Open Re: help socket b4a

    Post by mbpersian on Sun Aug 10, 2014 6:06 am

    aliqolami wrote:
    mbpersian wrote:
    douste golam
    hanuz kheyli kaar dare o motmaen baash ba in cod b nim connect nmishe.
    behet pishnhaad miknm haddeaksar yek hafte sabr kon ta age shod libesho aamade konam ya age nashod source login be nim ro mizaram tu hamin forum.

    dash hanoz proje ro nazashti ?
    bbakhshid bkhoda ala khune nistam yani y hafte e has
    b mahze inke beresam khune aamadash miknm! qowl
    bazam bbakhshid





    Ba Tashakkor Kardan ( + ) Shakhsiat KhoD Ra Neshan Midahid !
    MBP Inc.
    mbpersian
    avatar
    iman saeedi
    VB & VB.Net Admin
    VB & VB.Net Admin

    Posts : 95
    Points : 201
    Thanks : 54
    Join date : 2013-06-25

    Open Re: help socket b4a

    Post by iman saeedi on Sun Aug 10, 2014 9:01 am

    kare khasi nadare yekam zahmat bekesh vase karet natonesti topic bede nake ta didi in chiz nmishe zart topic bedi:D
    projei ke mostafa dad chek kon bade login nimbuzz chexmlaye dgi mikhad yekish set resource yeki get addlist kolan 3 ya 4ta xml dg mikhad to ba bom on sho xml consolo va kon xmlayi ke nisto ja sazi kon hamin kolan 5mine
    avatar
    Armin Ramzani
    Programmer
    Programmer

    Posts : 312
    Points : 559
    Thanks : 61
    Join date : 2014-02-25
    Age : 22
    Location : Iran , Gilan , Lahijan

    Open Re: help socket b4a

    Post by Armin Ramzani on Sun Aug 10, 2014 9:54 am

    imanking wrote:
    kare khasi nadare yekam zahmat bekesh vase karet natonesti topic bede nake ta didi in chiz nmishe zart topic bedi:D
    projei ke mostafa dad chek kon bade login nimbuzz chexmlaye dgi mikhad yekish set resource yeki get addlist kolan 3 ya 4ta xml  dg mikhad to ba bom on sho xml consolo va kon xmlayi ke nisto ja sazi kon hamin kolan 5mine

    alan u fahmidi man zahmat nakeshidam?ino fahmidi man dige kar be nim ndaram lal  Khande 





    DRINK Be Name Madar DRINK
    Baraye Tashakor kardan Az + Use Konid
    Copy Bardari Ba Zekre Manba Mojaz Mibashad
    avatar
    Armin Ramzani
    Programmer
    Programmer

    Posts : 312
    Points : 559
    Thanks : 61
    Join date : 2014-02-25
    Age : 22
    Location : Iran , Gilan , Lahijan

    Open Re: help socket b4a

    Post by Armin Ramzani on Tue Aug 12, 2014 4:03 pm

    In Application Ha hichkodom chera online nemishan ?





    DRINK Be Name Madar DRINK
    Baraye Tashakor kardan Az + Use Konid
    Copy Bardari Ba Zekre Manba Mojaz Mibashad
    avatar
    Armin Ramzani
    Programmer
    Programmer

    Posts : 312
    Points : 559
    Thanks : 61
    Join date : 2014-02-25
    Age : 22
    Location : Iran , Gilan , Lahijan

    Open Re: help socket b4a

    Post by Armin Ramzani on Tue Aug 12, 2014 4:17 pm



    Injash Moshkel Dare Help Me





    DRINK Be Name Madar DRINK
    Baraye Tashakor kardan Az + Use Konid
    Copy Bardari Ba Zekre Manba Mojaz Mibashad
    avatar
    Armin Ramzani
    Programmer
    Programmer

    Posts : 312
    Points : 559
    Thanks : 61
    Join date : 2014-02-25
    Age : 22
    Location : Iran , Gilan , Lahijan

    Open Re: help socket b4a

    Post by Armin Ramzani on Wed Aug 13, 2014 4:15 am

    Kesi Nist ? Sad 





    DRINK Be Name Madar DRINK
    Baraye Tashakor kardan Az + Use Konid
    Copy Bardari Ba Zekre Manba Mojaz Mibashad
    avatar
    Mostafa Haghighi
    Super Moderator
    Super Moderator

    Posts : 163
    Points : 298
    Thanks : 99
    Join date : 2013-06-08
    Location : mazandaran

    Open Re: help socket b4a

    Post by Mostafa Haghighi on Thu Aug 14, 2014 2:08 am

    che moshkeli dare dada?
    man test krdam kamel
    hich moshkeli ndasht






    Fighting For Fun!

    avatar
    mahdirn
    New Member
    New Member

    Posts : 15
    Points : 26
    Thanks : 3
    Join date : 2014-08-05

    Open Re: help socket b4a

    Post by mahdirn on Fri Aug 15, 2014 5:09 pm

    rnostafa wrote:
    http://up.ehem.ir/uploads/1407087714191.rar
    moshkel y kalame bud
    inam project
    dadash mishe bishtar rahnami koni?
    in na textboxi dare na malume chetor bayad login shod?
    mishe be library tabdilesh koni?

    avatar
    Armin Ramzani
    Programmer
    Programmer

    Posts : 312
    Points : 559
    Thanks : 61
    Join date : 2014-02-25
    Age : 22
    Location : Iran , Gilan , Lahijan

    Open Re: help socket b4a

    Post by Armin Ramzani on Fri Aug 15, 2014 5:27 pm

    to khode cod nevisish neveshte idi psw





    DRINK Be Name Madar DRINK
    Baraye Tashakor kardan Az + Use Konid
    Copy Bardari Ba Zekre Manba Mojaz Mibashad
    avatar
    mahdirn
    New Member
    New Member

    Posts : 15
    Points : 26
    Thanks : 3
    Join date : 2014-08-05

    Open Re: help socket b4a

    Post by mahdirn on Sat Aug 16, 2014 6:54 am

    resource nadare ?
    chetor xml send konim?
    avatar
    Armin Ramzani
    Programmer
    Programmer

    Posts : 312
    Points : 559
    Thanks : 61
    Join date : 2014-02-25
    Age : 22
    Location : Iran , Gilan , Lahijan

    Open Re: help socket b4a

    Post by Armin Ramzani on Sat Aug 16, 2014 6:58 am

    dorod resource ro ke khodeton bayad az xml consol begirin va bezarin to ghesmate x_NewData

    yek nasihat az meti lal fekre cod nevisi vase nim nabash alaki vaghto omreto hadr midi

    moafaq bashi





    DRINK Be Name Madar DRINK
    Baraye Tashakor kardan Az + Use Konid
    Copy Bardari Ba Zekre Manba Mojaz Mibashad
    avatar
    mahdirn
    New Member
    New Member

    Posts : 15
    Points : 26
    Thanks : 3
    Join date : 2014-08-05

    Open Re: help socket b4a

    Post by mahdirn on Sat Aug 16, 2014 10:11 am

    aliqolami wrote:to khode cod nevisish neveshte idi psw
    man bazam natunestam id online konam ye bar be ja ido psw ido psw khodamo gozashtam nashod ye bar ham edittext gozashtam bazam nashod!!!!
     WALL WALL WALL WALL WALL 
    avatar
    Armin Ramzani
    Programmer
    Programmer

    Posts : 312
    Points : 559
    Thanks : 61
    Join date : 2014-02-25
    Age : 22
    Location : Iran , Gilan , Lahijan

    Open Re: help socket b4a

    Post by Armin Ramzani on Sat Aug 16, 2014 10:39 am

    Dosste Aziz Shoma Bayad ye 2 ta xml be on soft ezaf koni haminjori nist ke online she yeki resource yeki ham online status

    moafaq bashi





    DRINK Be Name Madar DRINK
    Baraye Tashakor kardan Az + Use Konid
    Copy Bardari Ba Zekre Manba Mojaz Mibashad
    avatar
    $huvalie
    New Member
    New Member

    Posts : 40
    Points : 69
    Thanks : 1
    Join date : 2014-02-09

    Open Re: help socket b4a

    Post by $huvalie on Sat Aug 16, 2014 11:34 am

    mostafa be nazaram 1source kamel bede enghad alaki spam nadan lol! 
    avatar
    Armin Ramzani
    Programmer
    Programmer

    Posts : 312
    Points : 559
    Thanks : 61
    Join date : 2014-02-25
    Age : 22
    Location : Iran , Gilan , Lahijan

    Open Re: help socket b4a

    Post by Armin Ramzani on Sat Aug 16, 2014 12:18 pm

    Salam Dostan Az Onjai Ke Man Dige Bikhiyal Soft Nevisi Vase Nimbuzz Shodam Faqat Bekhatere Harfe Mehdi lal In Softiye Ke dashtam dorost mikardam ro mizaram inja baghiyasho khodeton okey konid
    to kole jabber login mikone to room ham mire {Bikhiyale cod nevisi Vase Nimbuzz Shin}

    Moafaq Bashin

    linke download: http://s5.picofile.com/file/8135421550/Bot_Jabber.zip.html

    pasword file: www.programming.mrforum.net





    DRINK Be Name Madar DRINK
    Baraye Tashakor kardan Az + Use Konid
    Copy Bardari Ba Zekre Manba Mojaz Mibashad

    Sponsored content

    Open Re: help socket b4a

    Post by Sponsored content


      Current date/time is Mon Dec 11, 2017 11:22 pm