HIMSISFO

Himpunan Mahasiswa Sistem Informasi Universitas Mercubuana


    Socket C Pengganti WInsock Di Visual Basic

    Share
    avatar
    Alen1.1
    Super Administrator
    Super Administrator

    Male Jumlah posting : 82
    Age : 28
    Fakultas : Fasilkom
    Jurusan : sistem informasi
    Interest in : Visual Basic,xna,C#
    Registration date : 07.01.09

    Socket C Pengganti WInsock Di Visual Basic

    Post by Alen1.1 on Sat Jan 17, 2009 3:04 am

    nih gw bawain pengganti winsock d vb yaitu socket C ketawa


    CSocketMaster
    =============================


    *** What is CSocketMaster?
    ==========================

    CSocketMaster class is a Winsock control substitute that attempts to mimic it's behavior and interface to make it easy to implement.
    (katanya soket C mudah untuk d implementasikan ketawa )

    *** How do you use it?
    ======================

    1) Add CSocketMaster.cls and modSocketMaster.bas to your project.
    (mudah cara gunain ny tgl tambahin class dan module soket c k dalam project lo ketawa )

    2) In a Form, Class or UserControl add this line in the declaration area for each socket you want to use:
    (selanjut na lo deklarasiin dlu stiap soket yg mo lo gunain nah ini tmsk beda ama winscok vb ketawa )

    Dim WithEvents NameOfSocket As CSocketMaster

    where 'NameOfSocket' is any name you want for the socket.

    3) Finally you need to create the object before using it. Add this line in a sub or funtion:
    (stlah ntu lo harus create dlu object na sblun gunain soket na.. cara ny mudah koq tgl tambahin d sub, function klo gw bwt ny d form load ketawa)

    Set NameOfSocket = New CSocketMaster

    That's it.


    *** Differences between CSocketMaster and Winsock control
    =========================================================
    nah ini perbedaan ny ama winsock.. tp tenang aj ini hanya penulisan nama aj.. setiap fungsi ny sama koq

    A) Winsock Close function is CloseSck in CSocketMaster.
    B) Winsock Close event is CloseSck in CSocketMaster.
    C) WndProc function is used to deliver system messages and you should not call it under any circumstance.
    D) There are some other differences I intentionally put in CSocketMaster that you shouldn't notice. If you find a major difference that you think shouldn't be there, please let me know.

    *** Known issues
    ================

    A) Msgbox
    Due to a VB behavior by desing running a project in the IDE that displays a message box created with Msgbox prevents events from occurring. If you really need to use message boxes then you can use MessageBox api instead. Note that this only happens in the IDE, when you compile your project all events are fired no matter what. For more info check this site:
    Code:

     http://support.microsoft.com/default.aspx?scid=kb;en-us;178078


    *** Why not use Winsock control?
    ================================

    Bacause winsock it's a fixed non-modifiable control. Also it is known that Winsock has a memory leak. For more info check this site:
    Code:

     http://support.microsoft.com/default.aspx?scid=kb;en-us;171843
    (nah yg ini dah jelas kn klo winsock vb kita perlu meload ocx na jd agag lama respon ny)

    *** Why use a class instead of a control?
    =========================================

    Using a class instead of a control has some clear benefits. You have total encapsulation, and you could, for example, make a class (or control) that downloads files from internet just passing a URL without knowing how CSocketMaster works internally. You can modify CSocketMaster and add more fancy functions and events. Best of all: you don't have external dependencies.
    (rasain sendiri yag benefit ny ketawa)

    *** Why use a control instead of a class?
    =========================================

    There's a Winsock control clone as part of the sample projects. With a control you can build arrays and create sockets at runtime easier.
    (bs jg d jadiin array ketawa)


    *** Why so many Debug logs?
    ===========================

    That's for helping me (and you) to find any possible bug. If you get annoyed you can always erase them or comment them.
    (nah asik na debug na d ksh tw.. jd lo bs temuin yg eror dmna ato klo gag ska tgl d jd in komen ketawa)

    *** What's new on 1.3?
    ======================
    * Fixed the bug that wouldn't free listening socket when the end button is pressed
    * Now the use of breakpoints doesn't stop the socket messages
    * Minor bugs.

    baca aj yag seneng
    avatar
    Alen1.1
    Super Administrator
    Super Administrator

    Male Jumlah posting : 82
    Age : 28
    Fakultas : Fasilkom
    Jurusan : sistem informasi
    Interest in : Visual Basic,xna,C#
    Registration date : 07.01.09

    Re: Socket C Pengganti WInsock Di Visual Basic

    Post by Alen1.1 on Mon Jan 19, 2009 6:38 am

    ini module ama class source code ny berikut contoh chat tcp ny
    Code:
    http://www.geocities.com/anshoku/CSocketMaster13_CSocketPlus12_alfa.zip



    soket c emang jauh lebih kuat daripada winsock di vb,gw pernah nyoba array 1 soket sampe 50 array,soket ini pernah gw terapin untuk membuat suatu aplikasi chat yang bernama mig33,jadi bayangin aja...
    1 soket dapet dipaki login 1000 id

    kembangin yakk..:lol:

    viva programmer mercubuana...


    Terakhir diubah oleh Alen1.1 tanggal Tue Apr 07, 2009 1:01 am, total 1 kali diubah

    ko_t
    Mahasiswa pendatang
    Mahasiswa pendatang

    Jumlah posting : 2
    Fakultas : -
    Jurusan : -
    Interest in : -
    Registration date : 06.04.09

    Re: Socket C Pengganti WInsock Di Visual Basic

    Post by ko_t on Mon Apr 06, 2009 2:55 pm

    WAHHH ADA GURU BESAR NE DI SINI
    JADI PINGIN BELAJAR MA KANG ALEN
    HEHEHEHEHEHE
    KLO BERKENAN TOLONG CONTOH PROJECTNYA DONG KANG BIAR LEBIH MUDAH PEMAHAMAN
    avatar
    Alen1.1
    Super Administrator
    Super Administrator

    Male Jumlah posting : 82
    Age : 28
    Fakultas : Fasilkom
    Jurusan : sistem informasi
    Interest in : Visual Basic,xna,C#
    Registration date : 07.01.09

    Re: Socket C Pengganti WInsock Di Visual Basic

    Post by Alen1.1 on Tue Apr 07, 2009 12:58 am

    ko_t wrote:WAHHH ADA GURU BESAR NE DI SINI
    JADI PINGIN BELAJAR MA KANG ALEN
    HEHEHEHEHEHE
    KLO BERKENAN TOLONG CONTOH PROJECTNYA DONG KANG BIAR LEBIH MUDAH PEMAHAMAN


    jah ane jg pemula brur...

    mari kita sama2 belajar ketawa


    _________________
    janganlah selalu Inilah ayah saya,inilah paman saya,inilah teman saya...

    Tapi Inilah saya dengan segala kelebihan dan banyak kekurangan.

    ko_t
    Mahasiswa pendatang
    Mahasiswa pendatang

    Jumlah posting : 2
    Fakultas : -
    Jurusan : -
    Interest in : -
    Registration date : 06.04.09

    Re: Socket C Pengganti WInsock Di Visual Basic

    Post by ko_t on Wed Apr 08, 2009 2:31 pm

    wah ini yang ane suka
    merendah demi menjaga kualitas
    hehehehehehee
    avatar
    Alen1.1
    Super Administrator
    Super Administrator

    Male Jumlah posting : 82
    Age : 28
    Fakultas : Fasilkom
    Jurusan : sistem informasi
    Interest in : Visual Basic,xna,C#
    Registration date : 07.01.09

    Re: Socket C Pengganti WInsock Di Visual Basic

    Post by Alen1.1 on Thu Apr 09, 2009 1:22 am

    ko_t wrote:wah ini yang ane suka
    merendah demi menjaga kualitas
    hehehehehehee


    jiahahahy...bisa aja brur ini...emng g ada yg bsa diunggulin dr diri ane kok :malu: :malu: nangis nangis nangis


    _________________
    janganlah selalu Inilah ayah saya,inilah paman saya,inilah teman saya...

    Tapi Inilah saya dengan segala kelebihan dan banyak kekurangan.

    tenang
    Mahasiswa pendatang
    Mahasiswa pendatang

    Jumlah posting : 1
    Fakultas : UGM
    Jurusan : Mipa Elins
    Interest in : VB
    Registration date : 20.08.09

    Re: Socket C Pengganti WInsock Di Visual Basic

    Post by tenang on Thu Aug 20, 2009 4:34 am

    ketawa , aku dah register ni ..

    hadiah nya apa ??

    Sponsored content

    Re: Socket C Pengganti WInsock Di Visual Basic

    Post by Sponsored content


      Waktu sekarang Sun Jul 22, 2018 4:24 am